package com.sudo.boot.common.constant.enums;

import com.sudo.boot.base.constant.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author：DayDayUp
 * @Create：2023/4/18 17:11
 */
@Getter
@AllArgsConstructor
public enum ThrowOrReturn implements BaseEnum<String> {
    /**
     * 抛出异常
     */
    THROW("throw","抛出异常"),

    /**
     * 正常返回
     */
    RETURN("return","正常返回");

    private final String code;
    private final String desc;

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
